<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>评价成功</title>
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <link rel="stylesheet" type="text/css" href="./css/sucess.css" />
</head>

<body>

    <section class="aui-flexView">
        <!-- <header class="aui-navBar aui-navBar-fixed ">
        <a href="javascript:;" class="aui-navBar-item">
            <i class="icon icon-return"></i>
        </a>
        <div class="aui-center">
            <span class="aui-center-title">支付下单</span>
        </div>
        <a href="javascript:;" class="aui-navBar-item">
            <i class="icon icon-more"></i>
        </a>
    </header> -->
        <section class="aui-scrollView">


            <!-- <div class="aui-chang-box">
            <div class="aui-sept-box">
                <ul class="aui-sept-cell">
                    <li>
                        <em></em>
                        <p>加入购物车</p>
                    </li>
                    <li>
                        <em></em>
                        <p>商品下单</p>
                    </li>
                    <li>
                        <em></em>
                        <p>支付成功</p>
                    </li>
                </ul>
            </div>
        </div> -->

            <div class="aui-content-box">
                <div class="aui-yes">
                    <img src="./img/yes.png" alt="">
                </div>
                <h1>感谢您的评价</h1>
                <p id="textTitle"></p>
                <button onclick="removeWindow()">确定</button>

            </div>
            <!-- <div class="aui-Card-box">
            <p>恭喜获得一张优惠券</p>
            <div class="aui-flex">
                <div class="aui-text">
                    <h1> <i>￥</i> 9</h1>
                </div>
                <div class="aui-flex-box">
                    <h2>电商新优惠券</h2>
                    <p>无门槛</p>
                </div>
                <div class="aui-get-box">
                    <button>领取</button>
                </div>
            </div>
        </div> -->



        </section>

    </section>
    <script type="text/javascript">

        function request(paras) {
            var url = location.href;
            var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
            var paraObj = {}
            for (i = 0; j = paraString[i]; i++) {
                paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=") + 1, j.length);
            }
            var returnValue = paraObj[paras.toLowerCase()];
            if (typeof (returnValue) == "undefined") {
                return "";
            } else {
                return returnValue;
            }
        };

        document.getElementById('textTitle').innerHTML = decodeURI(request('msg'), 'utf-8');


        let btn = document.getElementById('onremoveClick');
        function removeWindow() {
            console.log('111');
            window.location.href = './index.html'
            // if (navigator.userAgent.indexOf("MSIE") > 0) {
            //     if (navigator.userAgent.indexOf("MSIE 6.0") > 0) {
            //         window.opener = null; window.close();
            //     }
            //     else {
            //         window.open('', '_top'); window.top.close();
            //     }
            // }
            // else if (navigator.userAgent.indexOf("Firefox") > 0) {
            //     window.location.href = 'about:blank '; //火狐默认状态非window.open的页面window.close是无效的
            //     //window.history.go(-2);
            // }
            // else {
            //     window.opener = null;
            //     window.open('', '_self', '');
            //     window.close();
            // }
        };



    </script>
</body>

</html>